package com.studentmanage.manage_user.dao;

import com.studentmanage.framework.domain.system.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.Date;

@Mapper
public interface UserMapper {
    @Update("<script> update user set lasttime = #{lasttime}, time = #{time} where username = #{name} </script>")
    public void update(User user);
    @Select("<script> select * from user where username = #{name}</script>")
    public User selectByName(String name);
}
